#include <stdio.h>

//打印等边三角形

int main() {
    int num = 0;
    printf("请输入数据:>");
    scanf("%d", &num);
    for (int i = 1; i <= num; i++) {
        for (int j = 1; j <= num - i; j++) {
            printf("  ");
        }
        for (int j = 1; j <= 2 * i - 1; j++) {
            printf("* ");
        }
        printf("\n");
    }
    return 0;
}